import request from '@/utils/request'

export function getScenicSpotList() {
  return request({
    url: '/article/scenicSpot/list',
    method: 'get'
  })
}

export function getScenicSpotById(id) {
  return request({
    url: '/article/scenicSpot/getScenicSpot',
    method: 'get',
    params: { id }
  })
}

export const getScenicSpotTicket = (scenicSpotId) => {
    return request({
      url: '/shop/ticket/getScenicSpotTicket',
      method: 'post',
      params: { scenicSpotId }, // 使用 params 代替 data
    });
  };
  